import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import '../node_modules/swiper/swiper-bundle.css'; 
import Swiper, { Navigation, Autoplay,Thumbs } from 'swiper';

Swiper.use([ Navigation, Autoplay,Thumbs]);

const app = createApp(App)

app.use(ElementPlus, {
    locale: zhCn,
})

app.config.globalProperties.$toPath = (path) => {
    router.push(path);
};
app.use(store).use(router).mount('#app')
